package Forms;

import Controls.Text;
import Core.Form;
import Core.GM;
import Core.Key;

public class Output extends Form
{

	public Output()
	{
		super(Form.HEAD);
		setWindowText(GM.FORM_CAPTION, "Output");
		body.h_border = 3;
	}

	public void addText(String string)
	{
		body.addControl(new Text(string, body.getAvailableW(), true));
	}

	public void processKey(int key, int state)
	{
		super.processKey(key, state);

		if (state == Key.RELEASED)
		{
			close();
		}
	}
}
